package cn.itcast.n3_Java线程;

import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 * Test01_创建线程2_实现Runnable接口
 * </p>
 *
 * @author flyduck
 * @since 2024-08-21
 */
@Slf4j(topic = "c.Test01_创建线程2_实现Runnable接口")
public class Test01_创建线程2_实现Runnable接口 {

    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                log.debug("running");
            }
        };
        Thread t1 = new Thread(runnable, "t1");
        t1.start();

        log.debug("running");
    }
}
